com.supermap.plot

Class AnimationGroup

    • Constructor Detail

      • AnimationGroup

        public AnimationGroup()
        Construction method
    • Method Detail

      • addAnimation

        public void addAnimation(AnimationGO pAnimation)
        Adds animation objects
        Parameters:
        pAnimation - animation objects
      • getGroupName

        public java.lang.String getGroupName()
        Gets the name of the animation group
        Returns:
        the name of the animation group
      • setGroupName

        public void setGroupName(java.lang.String groupName)
        Sets the name of the animation group
        Parameters:
        groupName - the name of the animation group
      • getAnimationCount

        public int getAnimationCount()
        Gets the number of the animation groups
        Returns:
        the number of the animation groups
      • getAnimationByIndex

        public AnimationGO getAnimationByIndex(int index)
        Creates index animation objects according to the index sequence
        Parameters:
        index - the index
        Returns:
        The animation object.
      • getAllAnimationByGeometry

        public AnimationGO[] getAllAnimationByGeometry(int geomtryID,
                                                       java.lang.String controlName,
                                                       java.lang.String layerName)
        Gets all animations of the current object
        Parameters:
        geomtryID - id of geometry object
        controlName - the name of animation object
        layerName - Layer name
        Returns:
        The animation object array.
      • GetAllAnimationByType

        public AnimationGO[] GetAllAnimationByType(AnimationDefine.AnimationType type)
        Gets the animation object array corresponding with the specified animation types
        Parameters:
        type - The animation type
        Returns:
        The animation object array.
      • getAllAnimation

        public java.util.List<AnimationGO> getAllAnimation()
        Gets all animation objects
        Returns:
        All animation objects.
      • removeAnimation

        public boolean removeAnimation(java.lang.String animationName)
        Removes animation objects
        Parameters:
        animationName - the name of an animation object
        Returns:
        removal was successful.
      • removeAllAnimations

        public void removeAllAnimations()
        Removes all animation objects
      • RemoveAllAnimationByGeometry

        public boolean RemoveAllAnimationByGeometry(int geometryId,
                                                    java.lang.String controlName,
                                                    java.lang.String layerName)
        Removes all animation corresponding with the specified geometry object
        Parameters:
        geometryId - id of geometry object
        controlName - the name of animation
        layerName - Layer name
        Returns:
        removal was successful.
      • deleteAnimation

        public boolean deleteAnimation(java.lang.String animationName)
        Removes the specified animation objects
        Parameters:
        animationName - the name of an animation object
        Returns:
        removal was successful.
      • deleteAllAnimations

        public void deleteAllAnimations()
        Removes all animation objects
      • setStartTime

        public void setStartTime(double time)
        Sets the starting time
        Parameters:
        time - The starting time
      • getStartTime

        public double getStartTime()
        Gets the starting time
        Returns:
        the starting time
      • getDuration

        public double getDuration()
        Gets the lasting time
        Returns:
        The lasting time of animation
      • GetAnimationGroupPlayState

        public AnimationDefine.AnimationGroupPlayState GetAnimationGroupPlayState()
        Gets the playing status of animation group
        Returns:
        the playing status of animation group
      • GetAnimationByName

        public AnimationGO GetAnimationByName(java.lang.String AnimatinoName)
        Gets animation objects according to their names
        Parameters:
        AnimatinoName - Name
        Returns:
        The animation object.
      • dispose

        public void dispose()
        Closes